package org.fing.edu.uy.esbadp.logger;

import java.util.logging.Level;
import java.util.logging.Logger;

public class LoggerADP {
	
	public static final Level DEBUG_LEVEL = Level.parse("FINE");
	
	public static synchronized Logger getLogger(String name) {
		Logger logger = Logger.getLogger(name);
		
		if(LogProperty.getInstance().isDebug_mode()){
			logger.setLevel(DEBUG_LEVEL);
		}
		
		return logger;
    }

}
